//
//  YTDriverTeamServices.m
//  YiTuDriverClient
//
//  Created by 石少庸 on 2017/7/18.
//  Copyright © 2017年 Yitu. All rights reserved.
//

#import "YTDriverTeamServices.h"

@implementation YTDriverTeamServices

+ (RACSignal *)loadDriverList:(NSDictionary *)dict {
    return [self requestWithURL:@"driverteam/driverList" paramters:dict];
}

+ (RACSignal *)addDriverToTeam:(NSDictionary *)dict {
    return [self requestWithURL:@"driverteam/addDriver" paramters:dict];
}

+ (RACSignal *)deleteDriverFromTeam:(NSDictionary *)dict {
    return [self requestWithURL:@"driverteam/removeDriver" paramters:dict];
}

+ (RACSignal *)loadDriverDetail:(NSDictionary *)dict {
    return [self requestWithURL:@"driverteam/driverDetail" paramters:dict];
}

+ (RACSignal *)updateDriverDetail:(NSDictionary *)dict {
    return [self requestWithURL:@"driverteam/updateDriver" paramters:dict];
}

+ (RACSignal *)addCarToDriver:(NSDictionary *)data {
    return [self requestWithURL:@"driverteam/addRelationDriverAndCar" paramters:data];
}

+ (RACSignal *)driverOrderList:(NSDictionary *)data {
    return [self requestWithURL:@"driverteam/driverOrderList" paramters:data];
}

@end
